package com.ruoyi.system.domain.idclazz;

import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

@Data
public class SysUserRoleId implements Serializable {
	/** 用户ID */
	private Long userId;

	/** 角色ID */
	private Long roleId;

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		SysUserRoleId that = (SysUserRoleId) o;
		return Objects.equals(userId, that.userId) && Objects.equals(roleId, that.roleId);
	}

	@Override
	public int hashCode() {
		return Objects.hash(userId, roleId);
	}
}
